package com.zhima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhima.enums.QuestionBankState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zhima
 * @since 2023-08-25
 */
@Data
@TableName("oj_question_bank")
@ApiModel(value = "OjQuestionBank对象", description = "")
public class OjQuestionBank implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("题库id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("建立题库的用户id")
    @TableField("uploader_id")
    private Long uploaderId;

    @ApiModelProperty("题库名")
    @TableField("name")
    private String name;

    @ApiModelProperty("是否公开，public公开private不公开")
    @TableField("state")
    private QuestionBankState state;

    @ApiModelProperty("题库描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("题单内题目总数")
    @TableField("question_num")
    private Integer questionNum;
}
